import { lazy } from "react";
import BasicLayout from "@/layouts/BasicLayout";
import NavTwoLayout from "@/layouts/NavTwoLayout";
import NotFound from "@/pages/Exception/404";

const Home = lazy(() => import("@/pages/Home"));
const Login = lazy(() => import("@/pages/Login"));
const Course = lazy(() => import("@/pages/Courses"));
export default [
  {
    path: "/",
    redirect: "/home",
  },
  {
    path: "/home",
    // redirect:'/navone/home',
    // children:[{
    //   path:'/home',
    //   layout:BasicLayout,
    //   component:Home
    // }]
    component: Home,
  },
  {
    path: "/login",
    component: Login,
  },
  {
    path: "/course",
    component: Course,
  },
  {
    path: "*",
    component: NotFound,
  },
];
